import React, { Component } from 'react'
import { connect } from 'react-redux'
import { getUserList } from '../../redux/chatuser.redux'
import UserCard from '../usercard/usercard'

@connect(
  state=>state.chatuser,
  {getUserList}
)
class Genius extends Component{
  componentDidMount(){
    this.props.getUserList('boss')
  }
  render(){
    const { userList } = this.props
    return (
      <UserCard userList={userList} />
    )
  }
}

export default Genius